package chooongg.http

import android.Manifest
import androidx.annotation.RequiresPermission
import chooongg.base.Utils
import chooongg.base.utils.getConnectivityManager
import kotlinx.coroutines.Deferred

object HttpUtils {
    @Suppress("DEPRECATION")
    @RequiresPermission(Manifest.permission.ACCESS_NETWORK_STATE)
    fun networkIsConnected() =
        Utils.app.getConnectivityManager().activeNetworkInfo?.isConnected == true
}